package org.msn.rest;

public enum RestCode {
    successJoinRoom(100, "successJoinRoom"),
    successOpenVideo(101, "successOpenVide"),
    sendMsg(200, "sendMsg"),
    getAllRoom(201, "getAllRoom"),
    createRoom(202, "createRoom"),
    joinRoom(203, "joinRoom"),
    closeConnection(204, "closeConnection"),
    leaveRoom(205, "leaveRoom"),
    ping(206, "ping"),
    pong(207, "pong"),
    getRoomAllUserIP(208, "getRoomAllUserIP"),
    openVideo(209, "openVideo"),
    openSound(210, "openSound"),
    failJoinRoom(400, "failJoinRoom"),
    failOpenVideo(401, "failOpenVideo"),
    ;

    private int code;
    private String msg;

    RestCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
